package day9;

import java.util.Arrays;
import java.util.List;

//list set
public class TestChange {
    public static void main(String[] args) {
        String[] array = {"a", "b", "c"};
        List<String> list = Arrays.asList(array);
        Integer[] nums={1,2,3,4,5};
        String[] strings={"a","b"};
        List<Integer> list1=Arrays.asList(nums);
        List<String> list3=Arrays.asList(strings);
        //Object[] os=list.toArray();
        String[] ss=list3.toArray(new String[0]);
        System.out.println(list);
        System.out.println(list1);
        System.out.println(list3);
        System.out.println(Arrays.toString(ss));
    }
}
class ArrayList{

}
